package test.module.user.rest;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import test.module.user.entity.User;
import test.module.user.service.UserService;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: huwei
 * @date: 2020/1/21 17:09
 * @version: 1.0.0
 */
@RestController
@RequestMapping(value = "/user")
public class UserRestController {
    @Resource
    private UserService userService;
    @RequestMapping("/search/all")
    public List<User> searchAll(){
        return userService.list();
    }
}
